//
//  TopView.m
//  Yingzhi
//
//  Created by user on 15/9/23.
//  Copyright (c) 2015年 yingzhi. All rights reserved.
//

#import "TopView.h"

@implementation TopView

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self)
    {
        self.backgroundColor = kColorGreenTheme;
    }
    return self;
}
-(void)setTitile:(NSString *)title
{
    UILabel * titleLab = [[UILabel alloc] initWithFrame:CGRectMake(0.0f, 20.0f, SCREEN_WIDTH, 44.0f)];
    titleLab.textColor = [UIColor whiteColor];
    titleLab.font = [UIFont boldSystemFontOfSize:17.0f];
    titleLab.textColor = [UIColor whiteColor];
    titleLab.text = title;
    titleLab.textAlignment = NSTextAlignmentCenter;
    [self addSubview:titleLab];
    
}

@end
